package com.zy.je.book.module.initimport.calibre.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zy
 * @since 2024-06-20
 */
@Getter
@Setter
@TableName("books")
@ApiModel(value = "BooksEntity对象", description = "")
public class BooksEntity extends Model<BooksEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("title")
    private String title;

    @TableField("sort")
    private String sort;

    @TableField("timestamp")
    private String timestamp;

    @TableField("pubdate")
    private String pubdate;

    @TableField("series_index")
    private Double seriesIndex;

    @TableField("author_sort")
    private String authorSort;

    @TableField("isbn")
    private String isbn;

    @TableField("lccn")
    private String lccn;

    @TableField("path")
    private String path;

    @TableField("flags")
    private Integer flags;

    @TableField("uuid")
    private String uuid;

    @TableField("has_cover")
    private Integer hasCover;

    @TableField("last_modified")
    private String lastModified;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
